<h1>Listing characters</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Hp</th>
    <th>Pp</th>
    <th>Att</th>
    <th>Def</th>
    <th>Agil</th>
    <th>Luck</th>
  </tr>

<% for character in @characters %>
  <tr>
    <td><%=h character.name %></td>
    <td><%=h character.hp %></td>
    <td><%=h character.pp %></td>
    <td><%=h character.att %></td>
    <td><%=h character.def %></td>
    <td><%=h character.agil %></td>
    <td><%=h character.luck %></td>
    <td><%= link_to 'Show', character %></td>
    <td><%= link_to 'Edit', edit_character_path(character) %></td>
    <td><%= link_to 'Destroy', character, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New character', new_character_path %>
